export default class VisibleTW extends Laya.Script{
    private mCurrVAlue:number=0;
    private mStep:number=0.02;
    onEnable(){
        this.mCurrVAlue=0;
        this.mStep=Math.abs(this.mStep);
    }

    onUpdate(){
        this.mCurrVAlue+=this.mStep;
        if(this.mCurrVAlue<=0 || this.mCurrVAlue>=1)this.mStep *= -1;
        this.owner["alpha"]=this.mCurrVAlue;
    }
}